<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Dashboard extends CI_Controller {
	public function __construct()
	{
        parent::__construct();
		$this->template->set_template('template/admin_template');
		if($this->general_model->loggedin("admin") == FALSE)
		{
			redirect('admin/users/login');
		}
    }
	public function index()
	{
		if($this->general_model->loggedin("admin") == FALSE)
		{
			redirect('admin/users/login');	
		}
		else
		{
			$data['breadcrumb'] = set_crumbs(array());
			$this->template->content->view('admin/dashboard/dashboard',$data);
			// publish the template
			$this->template->publish();
		}
	}
	public function page()
	{
		echo "Hello";
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */